libxl: Specify the target ram size to Qemu (new) when calling it
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 6 Jan 2011 14:27:33 +0000 (14:27 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 6 Jan 2011 14:27:33 +0000 (14:27 +0000)
commit7e600e448519040d4857d291ddc8f34277d2c67e
treef2aa9323ae9e5a01884ae271a8672f8b9fedd9e3
parentd8318dc19b559da05efc2cccabe4290dc3e5d446
libxl: Specify the target ram size to Qemu (new) when calling it

This patch adds target_ram in device_model_info structure, to be used in
libxl_build_device_model_args_new. Qemu upstream needs to know about it.

It introduces also libxl__sizekb_to_mb to convert size from KB to MB by
rounding up the result.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.idl
tools/libxl/libxl_utils.h
tools/libxl/xl_cmdimpl.c